package com.tanxin.bill.modules;

import android.app.Application;

import com.blankj.utilcode.util.Utils;
import com.tanxin.bill.common.data.MyObjectBox;

import io.objectbox.BoxStore;

public class MyApp extends Application{
    private static MyApp myApplication;
    private BoxStore boxStore;
    @Override
    public void onCreate() {
        super.onCreate();
        myApplication = this;
        boxStore  = MyObjectBox.builder().androidContext(MyApp.this).build();
        Utils.init(myApplication);
    }

    public static MyApp getApplication(){
        return myApplication;
    }

    public BoxStore getBoxStore() {
        return boxStore;
    }
}
